package com.bwhx.eruler.dao.impl;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.QRCode;
import com.bwhx.eruler.dao.WXDAO;

@Repository
public class WXDAOImpl extends BaseDaoImpl<QRCode> implements WXDAO {

	public WXDAOImpl() {
		this.setNs("com.bwhx.eruler.mapper.WXMapper.");
	}
	@Override
	public QRCode getByPhone(String phone) {
		return this.getSqlSession().selectOne(this.getNs() + "getByPhone", phone);
	}
	@Override
	public Long getMaxSceneid() {
		return this.getSqlSession().selectOne(this.getNs() + "getMaxSceneid");
	}
	@Override
	public void updateQRCodeInfo(QRCode qr) {
		this.getSqlSession().update(this.getNs() + "updateQRCodeInfo",qr);
		
	}
	@Override
	public void insertQRCodeInfo(QRCode qr) {
		this.getSqlSession().insert(this.getNs() + "insertQRCodeInfo",qr);
		
	}


}
